﻿@model IEnumerable<ArunimaErp.Domain.shipmentinfo>

@{
    ViewBag.Title = "Index";

    Layout = null;
}

<p>
    @Html.ActionLink("Create New", "Create", new { id = ViewBag.PoStyleId}, new { @class="shipmentCreate"})
</p>

<table>
    <tr>
        <th>
            postyle
        </th>
        <th>
            Quantity
        </th>
        <th>
            Date
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.TextBoxFor(modelItem => item.postyle.PoNo, new { @readonly = true})
        </td>
        <td>
            @Html.TextBoxFor(modelItem => item.Quantity, new { @readonly = true })
        </td>
        <td>
            @Html.TextBox("Date", item.Date.ToString("dd/MMM/yyy"), new { @style = "width :'200px' " })
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new {  id=item.ShipmentId }, new { @class="shipmentEdit"})
        </td>
    </tr>
}

</table>
